﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:distance="clr-namespace:Hangout.Client.Core.Location"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:System_Linq_Expressions="clr-namespace:System.Linq.Expressions;assembly=System.Core" xmlns:System_Security_Cryptography="clr-namespace:System.Security.Cryptography;assembly=System.Core" 
    xmlns:Hangout_Client_Controls_User="clr-namespace:Hangout.Client.Controls.User" 
    xmlns:Hangout_Client_Controls_Hangout="clr-namespace:Hangout.Client.Controls.Hangouts" 
    xmlns:Hangout_Client_Controls_Notifications="clr-namespace:Hangout.Client.Controls.Notifications" 
    xmlns:Hangout_Client_Controls_Tutorial="clr-namespace:Hangout.Client.Controls.Tutorial"
    
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    x:Class="Hangout.Client.MainPage"
    
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
    SupportedOrientations="Portrait" Orientation="Portrait" Loaded="PhoneApplicationPage_Loaded">
	<phone:PhoneApplicationPage.Resources>
        <distance:DistanceConverter x:Key="DistanceConverter"/>
        <DataTemplate x:Key="MessageTemplate"/>
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
<!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="{StaticResource AppbarColor}" Opacity="1">
            <shell:ApplicationBar.MenuItems>
            	<shell:ApplicationBarMenuItem Text="profile" Click="ApplicationBarMenuItem_Click"/>
            	<shell:ApplicationBarMenuItem Text="account" Click="ApplicationBarMenuItem_Click_1"/>
                <shell:ApplicationBarMenuItem Text="settings" Click="ApplicationBarMenuItem_Click_2"/>
            	<shell:ApplicationBarMenuItem Text="help" Click="HelpBtn"/>
            	<shell:ApplicationBarMenuItem Text="about" Click="AboutBtn"/>
            </shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarIconButton IconUri="/icons/Shout.png" Text="shout out" Click="ApplicationBarIconButton_Click_2"/>
            <shell:ApplicationBarIconButton IconUri="/icons/NotificationCircle.png" IsEnabled="True" Text="notifications" Click="ApplicationBarIconButton_Click_3"/>
            <shell:ApplicationBarIconButton Text="pinned" IconUri="/icons/Pin.PNG" Click="ApplicationBarIconButton_Click"/>
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.feature.search.rest.png" Text="search" Click="SearchBtn_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>


    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>


    
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource BlueBrush}">
       <Grid.ColumnDefinitions>
    		<ColumnDefinition/>
    	</Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
        	<RowDefinition Height="768"/>
        </Grid.RowDefinitions>
       
            <Grid>

    	<Hangout_Client_Controls_Notifications:NotificationReceived x:Name="NotificationControl" VerticalAlignment="Top" d:LayoutOverrides="Height"/>

    	<Hangout_Client_Controls_Tutorial:Tutorial x:Name="TutorialControl" Margin="0,0,0,-32" Visibility="Collapsed"/>
</Grid>
            <controls:Panorama Margin="0,0,0,-27" Title="zoik it" Foreground="{StaticResource YellowBrush}">
            	<controls:PanoramaItem Header="item1">
            		<Grid/>
            	</controls:PanoramaItem>
            	<controls:PanoramaItem Header="item2" Foreground="{StaticResource YellowBrush}">
            		<Grid/>
            	</controls:PanoramaItem>
            </controls:Panorama>
    </Grid>

</phone:PhoneApplicationPage>